﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="SearchControl.ascx.cs" Inherits="MyControls_SearchControl" %>
 <script language="javascript" type="text/javascript" src="My97DatePicker/WdatePicker.js"></script>
 <script language="javascript" type="text/javascript" >
var counting;
function openSearch(){
    var test = document.getElementById("searchbutton");
	test.disabled = true;	
	window.open('GN_Travels.aspx?HotKey='+$('#txtSearch').val());
	counting = setInterval("countOne();",10000);	
}
function countOne(){
    var test = document.getElementById("searchbutton");
	test.disabled = false;
	clearInterval(counting);
}
 </script>
                    <div>
                        <img src="images/1_16.jpg" width="263" height="28" />
                    </div>
                    <div class="search">
                        <div class="search1">
                          
                            <span>
                                <input  type="text" id="txtSearch"  size="20" /></span> 
                            <span>
                                <input id="searchbutton" type="button" value="   " style="height:24px; width:24px;cursor:hand; background-image: url(images/index_28.jpg)"onclick="openSearch()"  /></span>
                            
                        </div>
                    </div>
                    <div class="diy">
                        <div id="con">
                            <ul id="tags">
                                <li class="selectTag">
                                <a onclick="selectTag('tagContent0',this);" href="javascript:void(0);">热门</a> </li>
                                <li><a onclick="selectTag('tagContent1',this);" href="javascript:void(0);">特价</a>
                                </li>
                                <li><a onclick="selectTag('tagContent2',this);" href="javascript:void(0);">推荐</a>
            </li>
            <li><a onclick="selectTag('tagContent3',this);" href="javascript:void(0);">DIY</a>
            
            </li>
        </ul>
        <div id="tagContent">
            <div class="tagContent selectTag" id="tagContent0">
                <ul class="nav2">
                    <asp:Repeater ID="rptHotKey" runat="server">
                        <ItemTemplate>
                            <li><a href='GN_Travels.aspx?HotKey=<%#Eval("title") %>'>
                                <%#Eval("title") %></a></li>
                        </ItemTemplate>
                    </asp:Repeater>
                </ul>
            </div>
            <div class="tagContent" id="tagContent1">
                <ul class="nav5">
                    <asp:Repeater ID="rptTeJia" runat="server">
                        <ItemTemplate>
                            <li><a href='<%#GetLineLink(Eval("travelType"),Eval("id")) %>' title='<%#Eval("title") %>'
                                target="_blank">
                                <%#TFXK.Common.StrHelper.CutString(Eval("title")+"",30) %></a></li>
                        </ItemTemplate>
                    </asp:Repeater>
                </ul>
            </div>
            <div class="tagContent" id="tagContent2">
                <ul class="nav5">
                    <asp:Repeater ID="rtpTuiJian" runat="server">
                        <ItemTemplate>
                            <li><a href='<%#GetLineLink(Eval("travelType"),Eval("id")) %>' title='<%#Eval("title") %>'
                                target="_blank">
                                <%#TFXK.Common.StrHelper.CutString(Eval("title")+"",30) %></a></li>
                        </ItemTemplate>
                    </asp:Repeater>
                </ul>
            </div>
            <div class="tagContent" id="tagContent3">
                <p>
                    人数:
                    <label>
                        <asp:DropDownList ID="ddlUNum" Width="75px" runat="server">
                            <asp:ListItem Value="0" Selected="True" Text="三人以下"></asp:ListItem>
                            <asp:ListItem Value="1" Text="三人以上"></asp:ListItem>
                        </asp:DropDownList>
                    </label>
                    时间:<label>
                        <input type="text" runat="server" id="txtDate" class="Wdate" style="width: 80px"
                            onclick="WdatePicker()" />
                    </label>
                </p>
                <p>
                    目的城市:
                    <label>
                        <input type="text" runat="server" id="txtAddress" class="kk2" />
                    </label>
                </p>
                <p>
                    联系方式:
                    <label>
                        <input type="text" runat="server" id="txtPhone" class="kk2" />
                    </label>
                </p>
                <p>
                    客户姓名:
                    <label>
                        <input type="text" runat="server" id="txtUserName" class="kk2" />
                    </label>
                </p>
                <p>
                    <span style="vertical-align: top">补充内容:</span>
                    <label>
                        <textarea runat="server" id="txtDes" cols="45" rows="2" class="kk3"></textarea>
                    </label>
                </p>
                <p>
                    <label>
                        <asp:Button ID="btnSaveDiy" runat="server" Text="提交" class="kk4" OnClick="btnSaveDiy_Click" />
                    </label>
                </p>
            </div>
        </div>
    </div>
</div>
